
var vm = new Vue({
	el:"#mbody",
	data:{
		enterBtn:false,
		sendBtn:true,
		endBtn:true,
		
		notice:[],
		
		renderlocal:false,
		localVideo:null,
		localAudio:null,
		remoteVideo:[],
		
		verbose:[],
		idea:null
	},
	methods:{
		enter:function(){
			/*initialize().then(function(src){
				vm.localVideo = src;
				vm.enterBtn = true;
				vm.endBtn = false;
				vm.sendBtn = false;
				enterRoom();
			},function(){
				alert("获取媒体资源时出错");
			})*/
			/*vm.localVideo = localSrc;
			vm.remoteVideo = remoteSrc;*/
			enterRoom();
			vm.enterBtn = true;
			vm.endBtn = false;
			vm.sendBtn = false;
		},
		send:function(){
			/*dataChannel.send(vm.idea);*/
			vm.idea = null;
		},
		end:function(){
			closeWebRTC();
			subscription.unsubscribe("测试");
			transferMsg("end");
			vm.endBtn = true;
			vm.enterBtn = false;
			vm.localVideo.stop();
			vm.localVideo = null;
			vm.remoteVideo = null;
			/*vm.sendBtn = true;*/
		},
		testecho:function(){
			getUM();
		},
		rederlocalAudio:function(){
			webAudio.renderLocally(vm.renderlocal);
			console.log("weAudio");
		}
	}
});